package liu.thread.accont;

public class A implements Runnable {
	
	private Accont acc;
	private boolean b=true;

	public A(Accont acc) {
		super();
		this.acc = acc;
	}

	@Override
	public void run() {
		
		while(b){
			try {
				b=acc.a();
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		
	}
	
	
	
	

}
